package com.example.demo.codegenerate.domain;

public class DatabaseColumn {
    /**
     * 列名
     */
    private String name;

    /**
     * 类型
     */
    private String type;

    /**
     * 是否主键
     */
    private boolean primary = false;

    /**
     * 最大长度
     */
    private int maxLength = 0;

    /**
     * 是否唯一
     */
    private boolean unique = false;

    /**
     * 是否为空
     */
    private boolean nullable = true;

    /**
     * 默认值
     */
    private Object _default;

    /**
     * 注释
     */
    private String comment;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public boolean isPrimary() {
        return primary;
    }

    public void setPrimary(boolean primary) {
        this.primary = primary;
    }

    public int getMaxLength() {
        return maxLength;
    }

    public void setMaxLength(int maxLength) {
        this.maxLength = maxLength;
    }

    public boolean isUnique() {
        return unique;
    }

    public void setUnique(boolean unique) {
        this.unique = unique;
    }

    public boolean isNullable() {
        return nullable;
    }

    public void setNullable(boolean nullable) {
        this.nullable = nullable;
    }

    public Object get_default() {
        return _default;
    }

    public void set_default(Object _default) {
        this._default = _default;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }
}
